import Ember from 'ember';
import config from './config/environment';

const Router = Ember.Router.extend({
  location: config.locationType,
  rootURL: config.rootURL
});

Router.map(function() {
  this.route('contact');
  this.route('categories', function () {
    this.route('subs', { path: '/:cateId' });
  });
  this.route('orders');
  this.route('personal');
  this.route('products');
  this.route('product-detail', {path:'products/:id'}, function() {
    this.route("detail");
    this.route("comments");
    this.route('schema');
  });
  this.route('shopping-cart');
  this.route('schema');
});

export default Router;
